using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using xWinFormsLib;
using pds2.XArena;

namespace QuizArena
{
    class ServidoresForm:Form
    {
        public ServidoresForm(Tela telaPai)
            :base(new Vector2(300, 250),
            new Vector2(225, 135),
            "Servidores de perguntas",
            Color.PowderBlue,
            Color.DarkBlue,
            ConteinerAuxiliar.fontePadrao,
            1f,
            false,
            false,
            false,
            false,
            BorderStyle.None,
            Style.Default, null, telaPai)
        {
            Textbox textboxQuestoes = new Textbox("textboxQuestoes", new Vector2(45, 40), 120, null, "Servidor1", "", 255, false, false, font, Style.Default);
            Add(textboxQuestoes);

            TextButton botaoQuestoes = new TextButton("botao", new Vector2(85f, 80f), "OK", null, Color.White, font, Form.Style.Default);
            botaoQuestoes.OnPress += new EventHandler(BotaoOK);
            Add(botaoQuestoes);
        }

        void BotaoOK(object obj, EventArgs e)
        {
            Hide();
            telaPai.SairDaTela();
        }

    }
}
